package com.ibm.cps.sql.select;

/**
 * Created by telekinesis on 6/17/15.
 */
public class FieldDescriptor {
    private final String targetColumn;
    private final String function;

    public FieldDescriptor(String function, String arguments) {
        this.function = function;
        this.targetColumn = arguments;
    }

    public FieldDescriptor(String targetColumn) {
        this.function = null;
        this.targetColumn = targetColumn;
    }

    public String getFunction() {
        return function;
    }

    public String getTargetColumn() {
        return targetColumn;
    }

    @Override
    public String toString() {
        return "ColumnDescriptor{" +
                "function='" + function + '\'' +
                ", targetColumn='" + targetColumn + '\'' +
                '}';
    }
}
